﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RaptorEngine.Threads
{
	public class ThreadBuffer
	{

		private bool _isFree;
		public bool IsFree {
			get { return _isFree; }
		}

		public long BufferNumber { get; set; }

		public ThreadBuffer()
		{
			_isFree = true;
		}

		internal void Unlock()
		{
			_isFree = true;
		}

		internal void Lock()
		{
			_isFree = false;
		}
	}
}
